# encoding=utf-8
# 工具环境相关静态数据
# BingoLee 2024-04-19
import os
from typing import Final


class Profile:
    app_name: Final = 'KitBox'
    app_version: Final = '20240510'                                            # 工具版本号
    baudrate_list: Final = ["1200", "2400", "4800", "9600", "14400", "19200", "38400", "43000", "57600", "76800",
                            "115200", "128000", "230400", "256000", "460800", "921600", "1152000", "1382400"]
    root_dir: Final = os.path.join(os.path.dirname(__file__), '../')           # 工具代码根目录
    resource_dir: Final = os.path.join(root_dir, 'res')                        # resource目录路径
    image_dir: Final = os.path.join(resource_dir, 'img')                       # 图标目录路径
    settings_file: Final = os.path.join(resource_dir, 'settings.json')         # 首选项配置文件
    custom_at_cmd_file: Final = os.path.join(resource_dir, 'custom_at_cmds.json')         # 首选项配置文件
    logs_dir: Final = os.path.join(root_dir, 'logs')
    server_data_file: Final = os.path.join(resource_dir, 'server_all_data.json')  # socket server数据文件
    server_release_note: Final = os.path.join(resource_dir, 'release_note.json')  # socket server release文件
    server_package_url: Final = f"http://%s:%s/static/v%s.zip"   # % (server ip, http port, version)
